/*1*/ package Vista;
/*2*/
/*3*/ import Controlador.ControladorExcepciones;
/*4*/ import java.awt.Color;
import java.awt.Component;
/*5*/ import java.awt.datatransfer.DataFlavor;
/*6*/ import java.awt.datatransfer.UnsupportedFlavorException;
/*7*/ import java.awt.event.WindowAdapter;
/*8*/ import java.awt.event.WindowEvent;
/*9*/ import java.io.File;
/*10*/ import java.io.IOException;
/*11*/ import java.util.Vector;
/*12*/ import javax.swing.DropMode;
import javax.swing.Icon;
import javax.swing.ImageIcon;
/*13*/ import javax.swing.JOptionPane;
/*14*/ import javax.swing.JTable;
/*15*/ import javax.swing.ListSelectionModel;
/*16*/ import javax.swing.TransferHandler;
import javax.swing.table.DefaultTableCellRenderer;
/*17*/ import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableColumn;
/*18*/


public class JPExcepciones extends javax.swing.JPanel {

    /*25*/     ControladorExcepciones control;

    /** Creates new form JPExcepciones */
    public JPExcepciones(ControladorExcepciones controlador) {
/*32*/         this.control = controlador;
/*33*/         initComponents();
/*34*/         //seteo tabla datos workflow
/*35*/         this.setNomCUW();
/*36*/         this.setDatosW();
/*37*/         //seteo tabla datos ON
/*38*/         this.setNomCUON();
/*39*/         this.setObstaculos();
/*40*/         this.setPrecondiciones();
/*41*/         //seteo tabla excepciones
/*42*/         this.setNomCUE();
/*43*/         if (this.control.getExcepciones() != null) {
/*44*/             this.setExcepciones(this.control.getExcepciones());
/*45*/         }
/*46*/         this.tExcepciones.addKeyListener(null);
/*47*/         this.tDatosON.setDragEnabled(true);
/*48*/         this.tDatosON.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
/*49*/         this.tExcepciones.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
/*50*/         this.tExcepciones.setDropMode(DropMode.ON);
/*51*/
/*52*/         //para utilizar el drag and drop en la tabla
/*53*/         this.tExcepciones.setTransferHandler(new TransferHandler() {
/*54*/
/*55*/             @Override
/*56*/             public boolean canImport(TransferSupport support) {
/*57*/                 if (!support.isDrop()) {
/*58*/                     return false;
/*59*/                 }
/*60*/                 if (!support.isDataFlavorSupported(DataFlavor.stringFlavor)) {
/*61*/                     return false;
/*62*/                 }
/*63*/                 return true;
/*64*/             }
/*65*/
/*66*/             @Override
/*67*/             public boolean importData(TransferSupport support) {
/*68*/                 if (!canImport(support)) {
/*69*/                     return false;
/*70*/                 }
/*71*/                 
/*72*/                 JTable.DropLocation dl = (JTable.DropLocation) support.getDropLocation();
/*73*/                 int row = dl.getRow();
/*74*/                 int col = dl.getColumn();
/*75*/                 String data;
/*76*/                 try {
/*77*/                     data = (String) support.getTransferable().getTransferData(DataFlavor.stringFlavor);
/*78*/                 } catch (UnsupportedFlavorException e) {
/*79*/                     return false;
/*80*/                 } catch (IOException e) {
/*81*/                     return false;
/*82*/                 }
/*83*/
/*84*/                 if (tExcepciones.getValueAt(row, 2) == null) {
/*85*/                     tExcepciones.setValueAt(data, row, 2);
/*86*/                 } else {
/*87*/                     tExcepciones.setValueAt(data, row, 2);
/*88*/                 }
/*89*/                 return true;
/*90*/             }
/*91*/         });
///////////*92*/         //si se cierra la ventana se piede guardar la sesion en un archivo
///////////*93*/         this.addWindowListener(new WindowAdapter() {
///////////*94*/
///////////*95*/             @Override
///////////*96*/             public void windowClosing(WindowEvent e) {
///////////*97*/                 javax.swing.JFileChooser jF1 = new javax.swing.JFileChooser();
///////////*98*/                 String ruta = "";
///////////*99*/                 try {
///////////*100*/                     if (jF1.showSaveDialog(null) == jF1.APPROVE_OPTION) {
///////////*101*/                         ruta = jF1.getSelectedFile().getAbsolutePath();
///////////*102*/                         if (new File(ruta).exists()) {
///////////*103*/                             if (JOptionPane.OK_OPTION == JOptionPane.showConfirmDialog(null, "El fichero existe,deseas reemplazarlo?", "Titulo", JOptionPane.YES_NO_OPTION)) {
///////////*104*/                                 control.archivoSesion(ruta);
///////////*105*/                             }
///////////*106*/                         } else {
///////////*107*/                             control.archivoSesion(ruta);
///////////*108*/                         }
///////////*109*/                     }
///////////*110*/                 } catch (Exception ex) {
///////////*111*/                     ex.printStackTrace();
///////////*112*/                 }
///////////*113*/
///////////*114*/                 System.exit(0);
///////////*115*/             }
///////////*116*/         });
/*117*/
/*118*/     }
/*119*/
/*120*/     /**
             * ADVERTENCIA: Constructor que nunca es utilizado
             **Asigna datos a las tablas tDatosWorkflow tDatosOn tExcepciones
             * @param controlador de esta vista
             * @param excepciones Vector con excepciones guardadas en una sesión anterior
             */
/*125*/     public JPExcepciones(ControladorExcepciones controlador, Vector excepciones) {
/*126*/         this.control = controlador;
/*127*/         initComponents();
/*128*/         //tabla datos workflow
/*129*/         this.setNomCUW();
/*130*/         this.setDatosW();
/*131*/         //tabla datos ON
/*132*/         this.setNomCUON();
/*133*/         this.setObstaculos();
/*134*/         this.setPrecondiciones();
/*135*/         //tabla excepciones
/*136*/         this.setNomCUE();
/*137*/         this.setExcepciones(excepciones);
/*138*/         this.tExcepciones.addKeyListener(null);
/*139*/         this.tDatosON.setDragEnabled(true);
/*140*/         this.tDatosON.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
/*141*/         this.tExcepciones.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
/*142*/         this.tExcepciones.setDropMode(DropMode.ON);
/*143*/
/*144*/         //para utilizar el drag and drop en la tabla
/*145*/         this.tExcepciones.setTransferHandler(new TransferHandler() {
/*146*/
/*147*/             @Override
/*148*/             public boolean canImport(TransferSupport support) {
/*149*/                 if (!support.isDrop()) {
/*150*/                     return false;
/*151*/                 }
/*152*/                 if (!support.isDataFlavorSupported(DataFlavor.stringFlavor)) {
/*153*/                     return false;
/*154*/                 }
/*155*/                 return true;
/*156*/             }
/*157*/
/*158*/             @Override
/*159*/             public boolean importData(TransferSupport support) {
/*160*/                 if (!canImport(support)) {
/*161*/                     return false;
/*162*/                 }
/*163*/                 JTable.DropLocation dl = (JTable.DropLocation) support.getDropLocation();
/*164*/                 int row = dl.getRow();
/*165*/                 int col = dl.getColumn();
/*166*/                 String data;
/*167*/                 try {
/*168*/                     data = (String) support.getTransferable().getTransferData(DataFlavor.stringFlavor);
/*169*/                 } catch (UnsupportedFlavorException e) {
/*170*/                     return false;
/*171*/                 } catch (IOException e) {
/*172*/                     return false;
/*173*/                 }
/*174*/
/*175*/                 if (tExcepciones.getValueAt(row, 2) == null) {
/*176*/                     tExcepciones.setValueAt(data, row, 2);
/*177*/                 } else {
/*178*/                     tExcepciones.setValueAt(data, row, 2);
/*179*/                 }
/*180*/                 return true;
/*181*/             }
/*182*/         });
/*183*/
/*184*/     }
/*185*/
/*186*/     //seteo de los nombres de los casos de uso en la tabla excepciones
/*187*/         /**
     * Seteo de los nombres de los casos de uso en la tabla tExcepciones
     */
/*190*/     public void setNomCUE() {
/*191*/         Vector nomCU = new Vector();
/*192*/         nomCU = this.control.getNombreCasoUso();
/*193*/         this.setFilasE(nomCU.size());
/*194*/         for (int i = 0; i < nomCU.size(); i++) {
/*195*/             this.tExcepciones.setValueAt(nomCU.get(i), i, 1);
                Integer intObj = new Integer(i+1);   //agrega el numero a la fila
                          this.tExcepciones.setValueAt(intObj, i, 0);
/*196*/         }
/*197*/     }
/*198*/
/*199*/     //seteo del nombre de los casos de uso en la tabla de excepciones workflow
/*200*/         /**
     * Seteo del nombre de los casos de uso en la tabla tDatosWorkflow
     */
/*203*/     public void setNomCUW() {
/*204*/         Vector nomCU = new Vector();
/*205*/         nomCU = this.control.getNombreCasoUso();
/*206*/         this.setFilasW(nomCU.size());
/*207*/         for (int i = 0; i < nomCU.size(); i++) {
/*208*/             this.tDatosWorkflow.setValueAt(nomCU.get(i), i, 1);
                Integer intObj = new Integer(i+1);   //agrega el numero a la fila
                          this.tDatosWorkflow.setValueAt(intObj, i, 0);
 
/*209*/         }
/*210*/
/*211*/     }
/*212*/
/*213*/     //seteo de los datos complementarios de la tabla workflow
/*214*/         /**
     * Seteo de los datos complementarios de la tabla tDatosWorkflow (excepciones y acción alternativa)
     */
/*217*/     public void setDatosW() {
/*218*/         Vector datos = this.control.datosWorkflow();
/*219*/         for (int i = 0; i < datos.size(); i++) {
/*220*/             //System.out.println(datos.size());
/*221*/             Vector v = (Vector) datos.get(i);
/*222*/             if (!((Integer) v.get(0) == -1)) {
/*223*/                 this.tDatosWorkflow.setValueAt(v.get(1), (Integer) v.get(0), 2);
/*224*/                 this.tDatosWorkflow.setValueAt(v.get(2), (Integer) v.get(0), 3);
/*225*/             }
/*226*/
/*227*/         }
/*228*/     }
/*229*/
/*230*/     //seteo del nombre de los casos de uso de la tabla de objetivos del negocio
/*231*/         /**
     * Seteo del nombre de los casos de uso de la tabla de objetivos del negocio
     */
/*234*/     public void setNomCUON() {
/*235*/         Vector nomCU = new Vector();
/*236*/         nomCU = this.control.getNombreCasoUso();
/*237*/         this.setFilasON(nomCU.size());
/*238*/         for (int i = 0; i < nomCU.size(); i++) {
/*239*/             this.tDatosON.setValueAt(nomCU.get(i), i, 1);
                     Integer intObj = new Integer(i+1);   //agrega el numero a la fila
                     this.tDatosON.setValueAt(intObj, i, 0);

/*240*/         }
/*241*/     }
/*242*/
/*243*/     //seteo de los obstaculos en la tabla de los objetivos del negocio
/*244*/         /**
     * Seteo de las precondiciones en la tabla de objetivos del negocio tDatosON
     */
/*247*/     public void setObstaculos() {
/*248*/         Vector obstaculos = new Vector();
/*249*/         obstaculos = this.control.getObstaculos();
/*250*/         for (int i = 0; i < obstaculos.size(); i++) {
/*251*/             this.tDatosON.setValueAt(obstaculos.get(i), i, 2);
/*252*/         }
/*253*/     }
/*254*/
/*255*/     //seteo de las precondiciones en la tabla de objetivos del negocio
/*256*/         /**
     * Seteo de las precondiciones en la tabla de objetivos del negocio tDatosON
     */
/*259*/     public void setPrecondiciones() {
/*260*/         Vector precondiciones = new Vector();
/*261*/         precondiciones = this.control.getPrecondiciones();
/*262*/         for (int i = 0; i < precondiciones.size(); i++) {
/*263*/             this.tDatosON.setValueAt(precondiciones.get(i), i, 3);
/*264*/         }
/*265*/     }
/*266*/
/*267*/     //seteo de las propiedades de la tabla
/*268*/         /**
     * Seteo de las propiedades de la tabla tExcepciones
     * @param tam Número de filas de la tabla
     */
/*272*/     public void setFilasE(int tam) {
/*273*/         DefaultTableModel tabla = new MyTableModel(new Object[][]{},
/*274*/                 new String[]{
/*275*/                     "Número","Caso de Uso", "Excepciones"
/*276*/                 });
/*277*/         tabla.setRowCount(tam);
/*278*/         tabla.setColumnCount(3);
/*279*/         this.tExcepciones.setModel(tabla);
/*280*/         MakeScrollableTextArea scrollArea = new MakeScrollableTextArea(this.tExcepciones, this.tExcepciones.getColumn("Excepciones"), 100, 70, 800);
/*281*/         this.tExcepciones.setShowGrid(true);
/*282*/         this.tExcepciones.setGridColor(Color.black);
               TableColumn col= tExcepciones.getColumn("Número");
                col.setMaxWidth(50);
                                               
/*283*/     }
/*284*/
/*285*/     /**
     * Clases para generar las tablas
     */
/*288*/     class MyTableModel extends DefaultTableModel {
/*289*/
/*290*/         public MyTableModel(Object[][] data, Object[] columnNames) {
/*291*/             super(data, columnNames);
/*292*/         }
/*293*/
/*294*/         /**
                 *
                 * @param row
                 * @param col
                 * @return
                 */
/*300*/         @Override
/*301*/         public boolean isCellEditable(int row, int col) {
/*302*/             if (col == 0 || col == 1) {
/*303*/                 return false;
/*304*/             } else {
/*305*/                 return true;
/*306*/             }
/*307*/         }
/*308*/     }
/*309*/
/*310*/     /**
             *
             */
/*313*/     class MyTableModel2 extends DefaultTableModel {
/*314*/
/*315*/         /**
                 *
                 * @param data
                 * @param columnNames
                 */
/*320*/         public MyTableModel2(Object[][] data, Object[] columnNames) {
/*321*/             super(data, columnNames);
/*322*/         }
/*323*/
/*324*/         /**
                 *
                 * @param row
                 * @param col
                 * @return
                 */
/*330*/         @Override
/*331*/         public boolean isCellEditable(int row, int col) {
/*332*/             return false;
/*333*/         }
/*334*/     }
/*335*/
/*336*/     /**
             *
             */
/*339*/     class MyTableModel3 extends DefaultTableModel {
/*340*/
/*341*/         /**
                 *
                 * @param data
                 * @param columnNames
                 */
/*346*/         public MyTableModel3(Object[][] data, Object[] columnNames) {
/*347*/             super(data, columnNames);
/*348*/         }
/*349*/
/*350*/         /**
                 *
                 * @param row
                 * @param col
                 * @return
                 */
/*356*/         @Override
/*357*/         public boolean isCellEditable(int row, int col) {
/*358*/             return false;
/*359*/         }
/*360*/     }
/*361*/
/*362*/         /**
     * Seteo de las propiedads de la tabla tDatosWorkflow
     * @param tam Número de filas de la tabla tDatosWorkflow
     */
/*366*/     public void setFilasW(int tam) {
/*367*/         DefaultTableModel tabla = new MyTableModel2(new Object[][]{},
/*368*/                 new String[]{
/*369*/                     "Número","Caso de Uso", "Excepciones Workflow", "Acción Alternativa"
/*370*/                 });
/*371*/         tabla.setRowCount(tam);
/*372*/         tabla.setColumnCount(4);
/*373*/         this.tDatosWorkflow.setModel(tabla);
/*374*/         this.tDatosWorkflow.setShowGrid(true);
/*375*/         this.tDatosWorkflow.setGridColor(Color.black);
/*376*/       TableColumn col= tDatosWorkflow.getColumn("Número");
                col.setMaxWidth(50);
                
             }
/*377*/
/*378*/         /**
     * Seteo de las propiedads de la tabla tDatosON
     * @param tam Número de filas de la tabla tDatosON
     */
/*382*/     public void setFilasON(int tam) {
/*383*/         DefaultTableModel tabla = new MyTableModel3(new Object[][]{},
/*384*/                 new String[]{
/*385*/                     "Número","Caso de Uso", "Precondición", "Obstáculo"
/*386*/                 });
/*387*/         tabla.setRowCount(tam);
/*388*/         tabla.setColumnCount(4);
/*389*/         this.tDatosON.setModel(tabla);
/*390*/         this.tDatosON.getColumnModel().getColumn(1).setCellRenderer(new TextAreaRenderer());
/*391*/         this.tDatosON.getColumnModel().getColumn(2).setCellRenderer(new TextAreaRenderer());
/*392*/         this.tDatosON.getColumnModel().getColumn(3).setCellRenderer(new TextAreaRenderer());
/*393*/         this.tDatosON.setShowGrid(true);
/*394*/         this.tDatosON.setGridColor(Color.black);
              TableColumn col= tDatosON.getColumn("Número");
                col.setMaxWidth(50);
                
/*395*/     }
/*396*/
/*397*/     /**
     * Captura los datos del campo Excepciones de la tabla tExcepciones
     * @return Vector con los datos del campo
     */
/*401*/     public Vector getExcepciones() {
/*402*/         Vector excepciones = new Vector();
/*403*/         for (int i = 0; i < this.tExcepciones.getRowCount(); i++) {
/*404*/             if (this.tExcepciones.getValueAt(i, 2) == null || this.tExcepciones.getValueAt(i, 2).toString().equals("")) {
/*405*/                 excepciones.add("--");
/*406*/             } else {
/*407*/                 excepciones.add(this.tExcepciones.getValueAt(i, 2));
/*408*/             }
/*409*/         }
/*410*/         return excepciones;
/*411*/     }
/*412*/
/*413*/     //seteo de excepciones de una sesion anterior
/*414*/         /**
     * Seteo de excepciones de una sesion anterior
     * @param excepciones
     */
/*418*/     public void setExcepciones(Vector excepciones) {
/*419*/         for (int i = 0; i < excepciones.size(); i++) {
/*420*/             this.tExcepciones.setValueAt(excepciones.get(i), i, 2);
/*421*/         }
/*422*/     }
/*423*/
/*424*/     //verificar si hay celdas seleccionadas
/*425*/         /**
     * Verifica si hay celdas seleccionadas
     * @return 1 si está seleccionada, 0 en caso contrario
     */
/*429*/     public int select() {
/*430*/         for (int i = 0; i < this.tExcepciones.getRowCount(); i++) {
/*431*/             if (this.tExcepciones.isCellSelected(i, 2)) {
/*432*/                 return 1;
/*433*/             }
/*434*/         }
/*435*/         return 0;
/*436*/     }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        tDatosWorkflow = new javax.swing.JTable();
        jScrollPane3 = new javax.swing.JScrollPane();
        tDatosON = new javax.swing.JTable();
        jScrollPane1 = new javax.swing.JScrollPane();
        tExcepciones = new javax.swing.JTable();
        jLabel1 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();

        setName("Form"); // NOI18N
        setPreferredSize(new java.awt.Dimension(958, 611));

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(proyectodetitulo.ProyectoDeTituloApp.class).getContext().getResourceMap(JPExcepciones.class);
        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel1.border.title"))); // NOI18N
        jPanel1.setName("jPanel1"); // NOI18N
        jPanel1.setPreferredSize(new java.awt.Dimension(958, 607));

        jScrollPane2.setName("jScrollPane2"); // NOI18N

        tDatosWorkflow.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Caso de Uso", "Acción Alternativa", "Excepciones Workflow"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tDatosWorkflow.setCellSelectionEnabled(true);
        tDatosWorkflow.setDragEnabled(true);
        tDatosWorkflow.setName("tDatosWorkflow"); // NOI18N
        jScrollPane2.setViewportView(tDatosWorkflow);
        tDatosWorkflow.getColumnModel().getSelectionModel().setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION);
        tDatosWorkflow.getColumnModel().getColumn(0).setHeaderValue(resourceMap.getString("tDatosWorkflow.columnModel.title0")); // NOI18N
        tDatosWorkflow.getColumnModel().getColumn(1).setHeaderValue(resourceMap.getString("tDatosWorkflow.columnModel.title2")); // NOI18N
        tDatosWorkflow.getColumnModel().getColumn(2).setHeaderValue(resourceMap.getString("tDatosWorkflow.columnModel.title1")); // NOI18N

        jScrollPane3.setName("jScrollPane3"); // NOI18N

        tDatosON.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Caso de Uso", "Precondición", "Obstáculo"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tDatosON.setCellSelectionEnabled(true);
        tDatosON.setDragEnabled(true);
        tDatosON.setName("tDatosON"); // NOI18N
        jScrollPane3.setViewportView(tDatosON);
        tDatosON.getColumnModel().getSelectionModel().setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION);
        tDatosON.getColumnModel().getColumn(0).setHeaderValue(resourceMap.getString("tDatosON.columnModel.title0")); // NOI18N
        tDatosON.getColumnModel().getColumn(1).setHeaderValue(resourceMap.getString("tDatosON.columnModel.title2")); // NOI18N
        tDatosON.getColumnModel().getColumn(2).setHeaderValue(resourceMap.getString("tDatosON.columnModel.title1")); // NOI18N

        jScrollPane1.setName("jScrollPane1"); // NOI18N

        tExcepciones.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Caso de Uso", "Excepciones"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tExcepciones.setCellSelectionEnabled(true);
        tExcepciones.setDropMode(javax.swing.DropMode.ON);
        tExcepciones.setName("tExcepciones"); // NOI18N
        jScrollPane1.setViewportView(tExcepciones);
        tExcepciones.getColumnModel().getSelectionModel().setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION);
        tExcepciones.getColumnModel().getColumn(0).setHeaderValue(resourceMap.getString("tExcepciones.columnModel.title0")); // NOI18N
        tExcepciones.getColumnModel().getColumn(1).setHeaderValue(resourceMap.getString("tExcepciones.columnModel.title1")); // NOI18N

        jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N

        jLabel6.setName("jLabel6"); // NOI18N

        jLabel7.setName("jLabel7"); // NOI18N

        jLabel8.setName("jLabel8"); // NOI18N

        jLabel2.setFont(resourceMap.getFont("jLabel2.font")); // NOI18N
        jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
        jLabel2.setName("jLabel2"); // NOI18N

        jLabel3.setFont(resourceMap.getFont("jLabel3.font")); // NOI18N
        jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
        jLabel3.setName("jLabel3"); // NOI18N

        jLabel4.setFont(resourceMap.getFont("jLabel4.font")); // NOI18N
        jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
        jLabel4.setName("jLabel4"); // NOI18N

        jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
        jLabel5.setName("jLabel5"); // NOI18N

        jLabel9.setIcon(resourceMap.getIcon("jLabel9.icon")); // NOI18N
        jLabel9.setText(resourceMap.getString("jLabel9.text")); // NOI18N
        jLabel9.setName("jLabel9"); // NOI18N

        jLabel11.setText(resourceMap.getString("jLabel11.text")); // NOI18N
        jLabel11.setName("jLabel11"); // NOI18N

        jLabel10.setIcon(resourceMap.getIcon("jLabel10.icon")); // NOI18N
        jLabel10.setText(resourceMap.getString("jLabel10.text")); // NOI18N
        jLabel10.setName("jLabel10"); // NOI18N

        jLabel12.setText(resourceMap.getString("jLabel12.text")); // NOI18N
        jLabel12.setName("jLabel12"); // NOI18N

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                        .addComponent(jLabel6)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel1Layout.createSequentialGroup()
                                        .addComponent(jLabel2)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 161, Short.MAX_VALUE)
                                        .addComponent(jLabel10))
                                    .addGroup(jPanel1Layout.createSequentialGroup()
                                        .addGap(4, 4, 4)
                                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel4)
                                            .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 430, javax.swing.GroupLayout.PREFERRED_SIZE))))
                                .addGap(18, 18, 18)
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel1Layout.createSequentialGroup()
                                        .addComponent(jLabel3)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 145, Short.MAX_VALUE)
                                        .addComponent(jLabel9))
                                    .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 449, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                                .addGap(324, 324, 324)
                                .addComponent(jLabel11)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 398, Short.MAX_VALUE)
                                .addComponent(jLabel12)
                                .addGap(43, 43, 43)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel7)
                        .addGap(558, 558, 558))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 877, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGap(337, 337, 337)
                                .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 553, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addContainerGap(62, Short.MAX_VALUE))
                    .addComponent(jLabel8)))
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 908, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(553, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel5)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 105, Short.MAX_VALUE)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel6)
                            .addComponent(jLabel7))
                        .addGap(158, 158, 158))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(63, 63, 63)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel10)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel1Layout.createSequentialGroup()
                                        .addGap(11, 11, 11)
                                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel2)
                                            .addComponent(jLabel3))
                                        .addGap(1, 1, 1)
                                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel12)
                                            .addComponent(jLabel11)))
                                    .addComponent(jLabel9))
                                .addGap(3, 3, 3)
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jScrollPane2, 0, 0, Short.MAX_VALUE)
                                    .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 202, Short.MAX_VALUE))))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel4)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel8)
                        .addGap(691, 691, 691))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 187, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 978, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 573, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JTable tDatosON;
    private javax.swing.JTable tDatosWorkflow;
    private javax.swing.JTable tExcepciones;
    // End of variables declaration//GEN-END:variables

}
